package com.sofar.gems.framework.vo;

import lombok.Getter;

/**
 * @author FENGZENG
 * @date 2021/8/20 11:01
 */
@Getter
public enum ResultCodeEnum {

    /**
     * 成功
     */
    SUCCESS(true, 20000, "成功"),
    UNKNOWN_REASON(false, 20001, "未知错误"),
    ANOTHER_ERROR(false, 21000, "其他错误"),
    BAD_SQL_GRAMMAR(false, 21001, "sql语法错误"),
    JSON_PARSE_ERROR(false, 21002, "json解析异常"),
    PARAM_ERROR(false, 21003, "参数错误");



    private Boolean success;
    private Integer code;
    private String message;

    ResultCodeEnum(Boolean success, Integer code, String message) {
        this.success = success;
        this.code = code;
        this.message = message;
    }
}
